<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="taglibs.jsp"%>
<%@ include file="easyuiLib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="${ctx}/css/login2.css" />
<title>登陆页面</title>
<script language="JavaScript">
if (window != top) 
	top.location.href = location.href;
</script>
<script type="text/javascript" charset="utf-8">
	function login(){
		$.ajax({
			type: "POST",
			url : "${ctx}/Login",
			data : $('#login_form').serialize(),
			success: function(data){
				var json = JSON.parse(data);
				console.log(data);
				if(json.status=="200"){
					location.replace("${ctx}/index.jsp");
				}
				else{
					$.messager.alert('提示信息',json.msg);
				}
			}
		});
	}
	$(function(){
		$('#pwd').bind('keypress',function(event){
			if(event.keyCode== "13"){
				login();
			}
		});
		
		$('#u').focus();
	});
</script>
</head>
<body>
	<h1>
		石竹试用平台下载<sup>V1.0</sup>
	</h1>

	<div class="login" style="margin-top: 50px;">
		<div class="web_qr_login" id="web_qr_login"
			style="display: block; height: 300px;">
			<div class="web_login" id="web_login">
				<div class="login-box">
					<div class="login_form">
						<form  name="loginform"	accept-charset="utf-8" id="login_form" class="loginForm"
							method="post">
							<div class="uinArea" id="uinArea">
								<label class="input-tips" >帐号：</label>
								<div class="inputOuter" id="uArea">
									<input id="u" type="text"  name="username" class="inputstyle" />
								</div>
							</div>
							<div class="pwdArea" id="pwdArea">
								<label class="input-tips" >密码：</label>
								<div class="inputOuter" id="pArea">
									<input type="password" id="pwd" name="password" class="inputstyle" />
								</div>
							</div>
							<div>
							<div class="uinArea">
								<label class="input-tips">功能：</label>
								<div class="inputOuter" style="margin-top:20px;">
									<input type="radio" name="systype" checked="true" value="down"/>下载页面
									<input type="radio" name="systype" value="mgr" />管理页面
								</div>
							</div>
							</div>
							<div style="padding-left: 50px; margin-top: 20px;">
								<a class="easyui-linkbutton c8" style="background-color:'#2795dc';width: 150px;" onclick="login()">登陆</a>								
							</div>
						</form>
					</div>

				</div>

			</div>
		</div>
	</div>
	<div class="jianyi">*在使用中遇到问题，请发送邮件到xiemb@carnation.com.cn</div>
</body>
</html>